package cn.xyfmzmy.eventloop;

import java.util.concurrent.TimeUnit;

/**
 * 手写EventLoopGroup
 */
public interface EventLoopGroup {

    void execute(Runnable runnable);

    void schedule(Runnable task, long delay, TimeUnit unit);

    void scheduleAtFixedRate(Runnable task, long initialDelay, long period, TimeUnit unit);

    EventLoop next();

}
